// 鼠标移入登录和注册页面span跟着移动
$('.a').mousedown(function(){
    $('ul span:last-child')
    .stop()
    .animate({
        left: 90 *$(this).index()
    })
})
// 鼠标移入img 提示显示
let img = document.querySelector('.img')
let img_tip = img.parentNode.children[1]
let code = document.querySelector('.code')
img.onmouseenter = () => img_tip.style.display = 'block'
img.onmouseleave =  () => img_tip.style.display = 'none'
$('.img').on('click',()=> code.style.display = 'flex')
let img1 =document.querySelectorAll('.img')[1]
let img1_tip =img1.parentNode.children[5]
img1.onmouseenter = ()=>img1_tip.style.display ='block'
img1.onmouseleave = ()=>img1_tip.style.display = 'none'
$('.img1').on('click',()=> code.style.display ='none')
